<div class="col_02" id="rightside">
	<div class="col_02_01" id="sysContent_box">
		<div class="main-wrap">
			<div class="m-t">
{if $s.e_type == 3}
	{if $s.isAccepter == 1}
	<h2>View Invitation Accepted</h2>
	{else}
	<h2>View Invitation to Connect</h2>
	{/if}
{else}
	<h2>Message View</h2>
{/if}
</div>
<div class="m-c">
	<table width="100%" border="0" cellpadding="5" cellspacing="5"  class="table_style" >
		<tr>
			<td width="20%">Date:</td>
			<td colspan="2">
				<b>{$s.date}</b>
			</td>
		</tr>
		<tr>
			<td width="20%">From:</td>
			<td colspan="2">
				<b><a href="recdetail.php?id={$s.e_sentrcid}">{$s.e_fromname}</a></b>
			</td>
		</tr>
		{if $s.e_type <> 3}
		<tr>
			<td>Subject:</td>
			<td colspan="2">
			  <div>{$s.e_subject}</div>
			</td>
		</tr>
		{else}
		<tr>
			<td>Subject:</td>
			<td colspan="2">
			  <div><b>{$s.e_fromname}</b> would like to connect with you on enetRecruiter</div>
			</td>
		</tr>
		{/if}
		<tr>
			<td>Send To:</td>
			<td colspan="2">
			  {$s.e_toemail}
			</td>
		</tr>
		{if $s.e_resumefile != ''}
		<tr>
			<td>Attached:</td>
			<td colspan="2">
				<a href="./uploadfiles/contact/{$s.e_resumefile}">{$s.e_resumefile}</a>
			</td>
		</tr>
		{/if}
		{if $s.e_attachjobs != ''}
		<tr>
			<td>Attach Job:</td>
			<td colspan="2">
				{$s.attachJobs}
			</td>
		</tr>
		{/if}
		{if $jobid > 0 }
		<tr>
			<td>Job Req#:</td>
			<td colspan="2">
				{$jobid}
			</td>
		</tr>
		<tr>
			<td>Job Title:</td>
			<td colspan="2">
				{$jobtitle}
			</td>
		</tr>
		{/if}
		{if $s.e_content != ''}
		<tr>
			<td>Message:</td>
			<td colspan="2">
				 <div style="border:1px solid #ccc">{$s.e_content}</div>
			</td>
		</tr>
		{/if}
		{if $s.e_type == 3}
		<tr>
			<td></td>
			<td colspan="2" style="color:#999">Connecting with someone on enetRecruiter allows you to easily send them messages and collaborate on job opportunities. Once you accept an invitation, the individual's contact details will be added to you're my Contacts. Likewise, your contact information will also be added to their contacts. If later you no longer wish to be connected, You can remove the individual from your My Contact list.</td>
		</tr>
		{/if}
		<tr>
			<td></td>
			<td colspan="2">
			{if $inbox != 1 && $s.e_type == 0}
			{literal}
				<input type="button" value=" Resend " onclick="if(confirm('Are you sure to resend this email?')){ location.href='sendemail.php?action=resend&id={/literal}{$id}{literal}'}" class="button-secondary" />
			{/literal}
			{/if}
			{if $inbox == 1}
				{if $s.e_type == 3 }
					{if $s.areFriends == 0}
						<input type="button" value=" Reply to Invite" onclick="location.href='replyinvite.php?emailId={$s.e_id}'" class="button-secondary" />
					{/if}
				{else}
					{if $replynewpage> 0}
					<input type="button" value=" Reply " onclick="location.href='contactreply.php?rid={$s.e_contactid}&emailId={$s.e_id}'" class="button-secondary" />
					{elseif $s.e_applicantId>0}
					<input type="button" value=" Reply " onclick="location.href='applicationreply.php?rid={$s.e_applicantId}&eid={$s.e_id}'" class="button-secondary" />
					{else}
					<input type="button" value=" Reply " onclick="location.href='replyemail.php?id={$id}'" class="button-secondary" />
					{/if}
				{/if}
			{/if}
				<input type="button" value=" Back " onclick = "javascript:history.back()" class="button-secondary"/>
			{if $s.e_joid > 0}
				{if $s.approved}
					&nbsp;<span style="color:red">Approved!</span>
				{else}
					<input type="button" value=" Approve " class="button-secondary" id="approve_btn"/>
					<input type="hidden" id="contact_id" value="{$s.e_contactid}" />
				{/if}
			{/if}
			{if $s.e_type == 3 && $s.areFriends == 1 && $s.isAccepter == 1}
				<span style='font-weight:bold;color:#FF8C00'>You've Accepted This Invitation.</span>
			{/if}
			</td>
		</tr>
	</table>
</div>
		</div>
</div>
<div class="col_02_02" id="side_box">
	<div class="signIn">
		<h2 class="m_t m_t_gray">Member  Center</h2>
		<div class="m_c">
			<div class="mySigned" id="J_sign_form">
				<div id="loginboxx">
					<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
					<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
					
					<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
				</div>
			</div>
		</div>
		<div class="m_f"></div>
	</div>
	<div class="panel_box mt_10">
		<h2 class="m_t m_t_gray">Join a Chat </h2>
		<div class="m_c">
			<div>
				<ul>
					<li><a href="findchats.php">Skype Chat</a></li>
					<li><a href="findwebinars.php">Webinars</a></li>
				</ul>
			</div>
			<p class="info"><a href="#"></a></p>							
		</div>
		<div class="m_f"></div>
	</div>
</div>
<div class="clearfix"></div>
</div>
				</div>
			</div>
		</div>
	</div>
</section>
{literal}
        <script type="text/javascript">
            $(document).ready(function() {
	       $("#approve_btn").click(function(){
			$.fancybox({
			    centerOnScroll : true,
			    modal : true,
			    content : "<div style=\"text-align:center;width:250px;font-size:14px;\">Once you approve the recruiter, he/she will be able to submit candidates to this job.<br/><br/><input id=\"fancyConfirm_ok\" type=\"button\" value=\"Approve\" class=\"button-secondary\">&nbsp;&nbsp;<input id=\"fancyConfirm_cancel\" type=\"button\" value=\"Close\" class=\"button-secondary\"></div>",
			    onComplete : function() {
				jQuery("#fancyConfirm_ok").click(function() {
					ret = true;
					location.href='sendemail.php?action=updatestats&reid='+$('#contact_id').val();
					jQuery.fancybox.close();
				})
				jQuery("#fancyConfirm_cancel").click(function() {
					ret = false;
					jQuery.fancybox.close();
				})
			    },
			 });
	       });
            });
        </script>
{/literal}